﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MyWeb.Data;
using MyWeb.Business;

namespace Web
{
    public partial class Dangky : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            
            var obj = new CustomersInfo();
            obj.Name = TextBox1.Text;
            obj.year = TextBox5.Text;
            obj.Address = TextBox6.Text;
            obj.Email = TextBox3.Text;
            obj.Tel = TextBox4.Text;
            CustomersService.Customers_Insert(obj);

            Response.Redirect("/thongbao.aspx");

        }
    }
}